<div class="result-container">
  <div class="result-box <%= success ? 'success' : 'error' %>">
    <h2>
      <%= success ? 'Success' : 'Failed' %>
    </h2>
    <p>
      <%= message %>
    </p>
    <div class="result-actions">
      <a href="/" class="btn back-btn">Back to Home</a>
    </div>
  </div>
</div>

<style>
  .result-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
  }

  .result-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
  }

  .result-box.success {
    border-top: 4px solid #2ecc71;
  }

  .result-box.error {
    border-top: 4px solid #e74c3c;
  }

  .result-box h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
  }

  .result-box p {
    color: #666;
    margin-bottom: 2rem;
  }

  .result-actions {
    display: flex;
    justify-content: center;
  }

  .back-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .back-btn:hover {
    background-color: #2980b9;
  }
</style>
